import Vue from 'vue'
import App from './App.vue'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import axios from 'axios'
import VueAxios from 'vue-axios'
import router from './router'
import store from './store'
import api from './api'

// import * as echarts from 'echarts'

import appConfig from '@/data/appConfig'

// import * as requests from './http/axios/index'

Vue.use(ElementUI)
Vue.use(VueAxios, axios)

Vue.config.productionTip = false

// Vue.prototype.$request = requests.request
// Vue.prototype.$intactRequest = requests.intactRequest
Vue.prototype.$api = api
Vue.prototype.appConfig = appConfig

// Vue.prototype.$ec = echarts

// console.log(process.env.VUE_APP_BASE_API)

// console.log(store.getters.nameAdd)

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
